package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysThesauriWordCategoryMapper;
import com.ruoyi.system.domain.SysThesauriWordCategory;
import com.ruoyi.system.service.ISysThesauriWordCategoryService;

/**
 * 叙词分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-23
 */
@Service
public class SysThesauriWordCategoryServiceImpl implements ISysThesauriWordCategoryService 
{
    @Autowired
    private SysThesauriWordCategoryMapper sysThesauriWordCategoryMapper;

    /**
     * 查询叙词分类
     * 
     * @param id 叙词分类主键
     * @return 叙词分类
     */
    @Override
    public SysThesauriWordCategory selectSysThesauriWordCategoryById(Long id)
    {
        return sysThesauriWordCategoryMapper.selectSysThesauriWordCategoryById(id);
    }

    /**
     * 查询叙词分类列表
     * 
     * @param sysThesauriWordCategory 叙词分类
     * @return 叙词分类
     */
    @Override
    public List<SysThesauriWordCategory> selectSysThesauriWordCategoryList(SysThesauriWordCategory sysThesauriWordCategory)
    {
        return sysThesauriWordCategoryMapper.selectSysThesauriWordCategoryList(sysThesauriWordCategory);
    }

    /**
     * 新增叙词分类
     * 
     * @param sysThesauriWordCategory 叙词分类
     * @return 结果
     */
    @Override
    public int insertSysThesauriWordCategory(SysThesauriWordCategory sysThesauriWordCategory)
    {
        return sysThesauriWordCategoryMapper.insertSysThesauriWordCategory(sysThesauriWordCategory);
    }

    /**
     * 修改叙词分类
     * 
     * @param sysThesauriWordCategory 叙词分类
     * @return 结果
     */
    @Override
    public int updateSysThesauriWordCategory(SysThesauriWordCategory sysThesauriWordCategory)
    {
        return sysThesauriWordCategoryMapper.updateSysThesauriWordCategory(sysThesauriWordCategory);
    }

    /**
     * 批量删除叙词分类
     * 
     * @param ids 需要删除的叙词分类主键
     * @return 结果
     */
    @Override
    public int deleteSysThesauriWordCategoryByIds(Long[] ids)
    {
        return sysThesauriWordCategoryMapper.deleteSysThesauriWordCategoryByIds(ids);
    }

    /**
     * 删除叙词分类信息
     * 
     * @param id 叙词分类主键
     * @return 结果
     */
    @Override
    public int deleteSysThesauriWordCategoryById(Long id)
    {
        return sysThesauriWordCategoryMapper.deleteSysThesauriWordCategoryById(id);
    }
}
